package com.zch.jh.service.dto;

import java.time.ZonedDateTime;
import java.io.Serializable;
import java.math.BigDecimal;
import com.zch.jh.domain.enumeration.OrderStates;

/**
 * A DTO for the {@link com.zch.jh.domain.Order} entity.
 */
public class OrderDTO implements Serializable {
    
    private Long id;

    private String orderCode;

    private ZonedDateTime orderTime;

    private ZonedDateTime cancelTime;

    private ZonedDateTime dealTime;

    private ZonedDateTime sendTime;

    private ZonedDateTime marginTime;

    private ZonedDateTime payTime;

    private ZonedDateTime checkedTime;

    private Long userId;

    private Long itemTypeId;

    private Long itemId;

    private BigDecimal orderPrice;

    private BigDecimal dealPrice;

    private Boolean isLockPrice;

    private OrderStates states;

    private BigDecimal estimatesQty;

    private BigDecimal dealQty;

    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public ZonedDateTime getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(ZonedDateTime orderTime) {
        this.orderTime = orderTime;
    }

    public ZonedDateTime getCancelTime() {
        return cancelTime;
    }

    public void setCancelTime(ZonedDateTime cancelTime) {
        this.cancelTime = cancelTime;
    }

    public ZonedDateTime getDealTime() {
        return dealTime;
    }

    public void setDealTime(ZonedDateTime dealTime) {
        this.dealTime = dealTime;
    }

    public ZonedDateTime getSendTime() {
        return sendTime;
    }

    public void setSendTime(ZonedDateTime sendTime) {
        this.sendTime = sendTime;
    }

    public ZonedDateTime getMarginTime() {
        return marginTime;
    }

    public void setMarginTime(ZonedDateTime marginTime) {
        this.marginTime = marginTime;
    }

    public ZonedDateTime getPayTime() {
        return payTime;
    }

    public void setPayTime(ZonedDateTime payTime) {
        this.payTime = payTime;
    }

    public ZonedDateTime getCheckedTime() {
        return checkedTime;
    }

    public void setCheckedTime(ZonedDateTime checkedTime) {
        this.checkedTime = checkedTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getItemTypeId() {
        return itemTypeId;
    }

    public void setItemTypeId(Long itemTypeId) {
        this.itemTypeId = itemTypeId;
    }

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public BigDecimal getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }

    public BigDecimal getDealPrice() {
        return dealPrice;
    }

    public void setDealPrice(BigDecimal dealPrice) {
        this.dealPrice = dealPrice;
    }

    public Boolean isIsLockPrice() {
        return isLockPrice;
    }

    public void setIsLockPrice(Boolean isLockPrice) {
        this.isLockPrice = isLockPrice;
    }

    public OrderStates getStates() {
        return states;
    }

    public void setStates(OrderStates states) {
        this.states = states;
    }

    public BigDecimal getEstimatesQty() {
        return estimatesQty;
    }

    public void setEstimatesQty(BigDecimal estimatesQty) {
        this.estimatesQty = estimatesQty;
    }

    public BigDecimal getDealQty() {
        return dealQty;
    }

    public void setDealQty(BigDecimal dealQty) {
        this.dealQty = dealQty;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof OrderDTO)) {
            return false;
        }

        return id != null && id.equals(((OrderDTO) o).id);
    }

    @Override
    public int hashCode() {
        return 31;
    }

    // prettier-ignore
    @Override
    public String toString() {
        return "OrderDTO{" +
            "id=" + getId() +
            ", orderCode='" + getOrderCode() + "'" +
            ", orderTime='" + getOrderTime() + "'" +
            ", cancelTime='" + getCancelTime() + "'" +
            ", dealTime='" + getDealTime() + "'" +
            ", sendTime='" + getSendTime() + "'" +
            ", marginTime='" + getMarginTime() + "'" +
            ", payTime='" + getPayTime() + "'" +
            ", checkedTime='" + getCheckedTime() + "'" +
            ", userId=" + getUserId() +
            ", itemTypeId=" + getItemTypeId() +
            ", itemId=" + getItemId() +
            ", orderPrice=" + getOrderPrice() +
            ", dealPrice=" + getDealPrice() +
            ", isLockPrice='" + isIsLockPrice() + "'" +
            ", states='" + getStates() + "'" +
            ", estimatesQty=" + getEstimatesQty() +
            ", dealQty=" + getDealQty() +
            "}";
    }
}
